#pragma once
// time date and time stamp convert.
#include <stdint.h>
typedef struct
{
    uint32_t nanosec;
    uint32_t year;
    uint8_t month;
    uint8_t day;
    uint8_t hour;
    uint8_t minute;
    uint8_t second;
    uint8_t week;
    uint8_t yday;
    int8_t cUTC;
} tmdateType;
tmdateType stamp2date(uint64_t lStamp, int8_t cUTC);
uint64_t date2stamp(tmdateType *dateVal);
